package chapter12;

import java.io.IOException;

public class ChildClass extends ParentClass{
	//鏋勯�鍑芥暟涓０鏄庢姏鍑虹殑寮傚父蹇呴』鍖呭惈鐖剁被鏋勯�鍑芥暟涓０鏄庢姏鍑虹殑寮傚父锛岃繖鏄洜涓虹埗绫荤殑鏋勯�鍑芥暟涓�畾浼氳璋冪敤
	public ChildClass() throws Exception
	{
		//super();
	}
	
	//瑕嗙洊鐨勬柟娉曚腑澹版槑鎶涘嚭鐨勫紓甯稿繀椤诲湪鐖剁被涓篃寰楀埌澹版槑(鎴栬�鏄埗绫诲０鏄庡紓甯哥殑瀛愮被)锛屽鏋滄槸RuntimeException鍒欎笉鍙楀奖鍝�	//鍥犱负杩欎簺exception鍗充娇涓嶅０鏄庝篃涓嶄細琚紪璇戝櫒妫�祴鍑烘潵,鍥犱负杩欎簺鏄繍琛屾椂寮傚父銆�	@Override
	public void testRuntimeException() throws RuntimeException
	{
		throw new RuntimeException();
	}
	
	//杩欓噷鐨勬柟娉曞氨涓嶉渶瑕佸０鏄庢姏鍑虹殑杩愯鏃跺紓甯�
	public void noDeclareRuntimeException()
	{
		throw new ArithmeticException();
	}
	
	//杩欓噷澹版槑鎶涘嚭鐨勯潪杩愯鏃跺紓甯稿繀椤昏鍖呭惈鍦ㄧ埗绫诲搴旀柟娉曠殑澹版槑涔嬩腑锛屾垨鑰呭共鑴嗕笉澹版槑鎶涘嚭浠讳綍寮傚父
	//杩欓噷IOException灏辨槸鐖剁被testCompileException鏂规硶澹版槑鎶涘嚭鐨凟xception鐨勫瓙绫汇�
	public void testComplieException() throws IOException
	{
		
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
